import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 200,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '船名',
        prop: 'p1',
        overHidden: true,
        search: true,

      },
      {
        label: '航次号',
        prop: 'p2',
        dicData: self.shipSTypeArr,
        filterable: true,
      },
      {
        label: '船舶类型',
        prop: 'p3',
        type: 'select',
        filterable: true,
      },
      {
        label: '始发港',
        prop: 'p4',
      },
      {
        label: '目的港',
        prop: 'p5',
      },
      {
        label: '贸别',
        prop: 'p6',
        type: 'select',
      },
      {
        label: '进\出口',
        prop: 'p7',
      },
      {
        label: '包装类型',
        prop: 'p8',
      },
      {
        label: '货名',
        prop: 'p9',
      },
      {
        label: '货类',
        prop: 'p10',
      },
      {
        label: '装卸',
        prop: 'p11',
      },
      {
        label: '到港时间',
        prop: 'p12',
        type: 'date'
      },
      {
        label: '靠泊时间',
        prop: 'p13',
        type: 'date'
      },
    ]
  }
}
